<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>配件信息列表</title>
<link rel="stylesheet" href="framework/css/form.css" type="text/css">
<link rel="stylesheet" href="framework/css/style.css" type="text/css">
<script type="text/javascript" src="framework/js/city.js"></script>
</head>
<body>
	<c:if test="${empty requestScope.pagebean}">
		<c:redirect url="listPartPrepare_par" />
	</c:if>
	<h2>配件信息列表</h2>
	<p align="center">

	<table width="100%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td align="center"><span style="color: #CE3C4F">${requestScope.message}</span>
				<table width="95%" class="datalist" border="1">
					<tr bgcolor="d3eaef">
						<td>名称</td>
						<td>售价</td>
						<td>库存</td>
						<td width="6%">操作</td>
					</tr>
					<c:forEach var="part" items="${request.pagebean.list}">
						<tr height="35px">
							<td><a href="editPartPrepare_par?part.id=${part.id}">${part.name}</a></td>
							<td>${part.price}</td>
							<td>${part.stock}</td>
							<td>
								<form action="removePart_par" style="border: 0;">
									<input type="hidden" name="part.id" value="${part.id}" /> <input
										type="hidden" name="pageNo" value="${pagebean.pageNo}" /> <input
										type="submit" value="删除" onclick="return confirm('确定删除吗？')">
								</form>
							</td>
						</tr>
					</c:forEach>
				</table></td>
		</tr>
	</table>
	<br> ${pagebean.pageToolBar }
	<br>
</body>
</html>